package com.tjjingpan.playvideotest

import android.util.Log

fun main()
{
    if("Hello Kitlin".startsWith("Hello")){
       println("执行成功");
    }

    if("Hello Kotlin" beginWith "Hello" ){
        println("执行成功");
    }

    val list = listOf("Apple","Banana","Orange","Pear","Grape")
    if(list.contains("Banana")){
        println("执行成功");
    }

    if(list has "Banana"){
        println("执行成功");
    }

    val map = mapOf("Apple" to 1,"Banana" to 2,"Orange" to 3,"Pear" to 4,"Grape" to 5)
    val map1 = mapOf("Apple" with 1,"Banana" with 2,"Orange" with 3,"Pear" with 4,"Grape" with 5)
}